package com.explment.lens.controller.log;

import com.explment.lens.entity.SysLogApiEntity;
import com.explment.lens.service.SysLogApiService;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Autowired;
import com.explment.lens.utils.result.ResultData;
/**
 * API接口日志记录 controller
 */
@RestController
@RequestMapping("/sysLogApiEntity")
public class SysLogApiController {
    @Autowired
    private SysLogApiService sysLogApiEntityService;

    @GetMapping("/{id}")
    public ResultData getById(@PathVariable String id) {
        return ResultData.success(sysLogApiEntityService.getById(id));
    }
}